package com.inspur.his.service.impl;

import com.inspur.his.mapper.DocMapper;
import com.inspur.his.pojo.Doc;
import com.inspur.his.pojo.DocExt;
import com.inspur.his.service.DocService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.inspur.his.pojo.DocState;
import com.inspur.his.pojo.UserExt;
import java.util.HashMap;
import java.util.List;

@Service("DocService")
public class DocServiceimpl implements DocService {
    @Autowired
    private DocMapper docMapper;
    @Override
    public List<DocExt> docList(HashMap map) {
        return docMapper.docList(map);
    }

    @Override
    public void docAdd(Doc doc) {
        docMapper.docAdd(doc);
    }

    @Override
    public void updateDoc(Doc doc) {
        docMapper.updateDoc(doc);
    }

    @Override
    public Doc getDoctorById(String docid) {
        return docMapper.getDoctorById(docid);
    }

    public void docchangeStatus(HashMap map) {
        docMapper.docchangeStatus(map);
    }
    public List<DocState> getDocByPst(){
        return docMapper.getDocByPst();
    }
}
